package com.mocha.bss.websocket;

import com.coffee.core.JSONUtils;
import com.coffee.ws.CoffeeWebsocketResponse;
import com.coffee.ws.CoffeeSessionManager;
import com.mocha.bss.websocket.message.DocDownloadPushMessage;

/**
 * @author songkui
 * @since 2024/4/19 18:55
 */
public class PushMessageService {

    public void pushExcelDownload(DocDownloadPushMessage pushMessage){
        CoffeeSessionManager.sendText(pushMessage.getUserId(), JSONUtils.toJson(CoffeeWebsocketResponse.responseSuccess(HandlerMapCmdType.PushDownload.cmd, pushMessage)));
    }

}
